package com.ruoyi.management_controller.RepresentativePerformance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.management_controller.RepresentativePerformance.mapper.RepresentativePerformanceMapper;
import com.ruoyi.management_controller.RepresentativePerformance.domain.RepresentativePerformance;
import com.ruoyi.management_controller.RepresentativePerformance.service.IRepresentativePerformanceService;

/**
 * 代履职综合Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-16
 */
@Service
public class RepresentativePerformanceServiceImpl implements IRepresentativePerformanceService 
{
    @Autowired
    private RepresentativePerformanceMapper representativePerformanceMapper;

    /**
     * 查询代履职综合
     * 
     * @param id 代履职综合主键
     * @return 代履职综合
     */
    @Override
    public RepresentativePerformance selectRepresentativePerformanceById(Long id)
    {
        return representativePerformanceMapper.selectRepresentativePerformanceById(id);
    }

    /**
     * 查询代履职综合列表
     * 
     * @param representativePerformance 代履职综合
     * @return 代履职综合
     */
    @Override
    public List<RepresentativePerformance> selectRepresentativePerformanceList(RepresentativePerformance representativePerformance)
    {
        return representativePerformanceMapper.selectRepresentativePerformanceList(representativePerformance);
    }

    /**
     * 新增代履职综合
     * 
     * @param representativePerformance 代履职综合
     * @return 结果
     */
    @Override
    public int insertRepresentativePerformance(RepresentativePerformance representativePerformance)
    {
        return representativePerformanceMapper.insertRepresentativePerformance(representativePerformance);
    }

    /**
     * 修改代履职综合
     * 
     * @param representativePerformance 代履职综合
     * @return 结果
     */
    @Override
    public int updateRepresentativePerformance(RepresentativePerformance representativePerformance)
    {
        return representativePerformanceMapper.updateRepresentativePerformance(representativePerformance);
    }

    /**
     * 批量删除代履职综合
     * 
     * @param ids 需要删除的代履职综合主键
     * @return 结果
     */
    @Override
    public int deleteRepresentativePerformanceByIds(Long[] ids)
    {
        return representativePerformanceMapper.deleteRepresentativePerformanceByIds(ids);
    }

    /**
     * 删除代履职综合信息
     * 
     * @param id 代履职综合主键
     * @return 结果
     */
    @Override
    public int deleteRepresentativePerformanceById(Long id)
    {
        return representativePerformanceMapper.deleteRepresentativePerformanceById(id);
    }
}
